<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/19
 * Time: 16:08
 */

namespace app\api\controller\v1;
use think\Validate;

class Banner
{
    /*
     * @url /Banner/:id
     *@http GET
     * @id banner的ID
     * */
public function getBanner($id) {
    $data = [
        'name' => 'vonder',
        'email' => 'vonder@qq.com'
    ];

    $validate = new Validate([
        'name' => 'require|max:10',
        'email' => 'email'
    ]);

    $resullt = $validate->check($data);
}

}